package com.eascs.workflow.common.entity.sequence;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 序列号Entity
 */
@Entity
@Table(name = "base_sequence")
public class SequenceEntity implements Serializable{
	private static final long serialVersionUID = 6071307164653698306L;
	
	final static public String DEFALUT_PREFIX="default_seq";
	final static public int SEQ_INDEX=1;
	/**序列号类型 --o2o货款编号*/
	final static public String O2O_LOAN_NO="O2O_LOAN_NO";
	/**序列号类型 --crm客户编号*/
	final static public String CRM_CUSTOMER_NO="CRM_CUSTOMER_NO";
	
	
	/**序列号类型 --crm客户编号*/
	final static public String MASS_SMS_NO="MASS_SMS_NO";
	
	
	
	@Id
	@Column(name = "sid")
	private String sid;
	
	/** 序列号类型 */
	@Column(name = "seq_type")
	private String seqType;
	
	/** 前缀 */
	@Column(name = "seq_prefix")
	private String seqPrefix;
	
	/** 序列号 */
	private int sequence;

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getSeqType() {
		return seqType;
	}

	public void setSeqType(String seqType) {
		this.seqType = seqType;
	}

	public String getSeqPrefix() {
		return seqPrefix;
	}

	public void setSeqPrefix(String seqPrefix) {
		this.seqPrefix = seqPrefix;
	}

	public int getSequence() {
		return sequence;
	}

	public void setSequence(int sequence) {
		this.sequence = sequence;
	}

	@Override
	public String toString() {
		return "SequenceEntity [sid=" + sid + ", seqType=" + seqType + ", seqPrefix=" + seqPrefix + ", sequence="
				+ sequence + "]";
	}
	
	
}
